<?php
/**
 * Created by PhpStorm.
 * User: 38339
 * Date: 2021-05-21
 * Time: 17:33
 */

namespace app\common\validate\sys;


use think\Validate;

class CommonSysConfig extends Validate
{

    protected $rule = [
        'config_name'  => 'require',
        'config_value' => 'require'
    ];

    protected $message  =   [
        'config_name.require' => '请输入配置名称',
        'config_value.require' => '请输入配置值',
    ];

    protected $scene = [
        'edit'  =>  ['config_name','config_value','id'],
        'add'  => ['config_name','config_value'],
    ];

}